Skip to content

Update parabricks minimap2 for scnanoseq#10788

Open
gburnett-nvidia wants to merge 7 commits intonf-core:masterfrom
gburnett-nvidia:update_parabricks_minimap2_for_scnanoseq
Open

Update parabricks minimap2 for scnanoseq#10788
gburnett-nvidia wants to merge 7 commits intonf-core:masterfrom
gburnett-nvidia:update_parabricks_minimap2_for_scnanoseq

Conversation

@gburnett-nvidia
Copy link
Contributor

PR checklist

Closes #XXX

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

tuple val(meta), path("*.cram"), emit: cram, optional: true
tuple val(meta), path("*.crai"), emit: crai, optional: true
tuple val(meta), path("*.{bam,cram}"), emit: bam, optional: true
tuple val(meta), path("*.{bai,crai}"), emit: index, optional: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tuple val(meta), path("*.{bai,crai}"), emit: index, optional: true
tuple val(meta), path("*.{bai,csi,crai}"), emit: index, optional: true

description: index corresponding to sorted CRAM file
pattern: "*.crai"
description: Index corresponding to sorted BAM or CRAM file
pattern: "*.{bai,crai}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pattern: "*.{bai,crai}"
pattern: "*.{bai,csi,crai}"

pattern: "*.crai"
description: Index corresponding to sorted BAM or CRAM file
pattern: "*.{bai,crai}"
ontologies: []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have some ontologies, as should several of the others.

Comment on lines +79 to +80
compatible_with:
\$(echo "\$pbrun_version_output" | tr '\\t' ' ' | awk -F':' '/Compatible With:/,/^---/ { if (\$0 !~ /Compatible With:/ && \$0 !~ /^---\$/ && index(\$0,":")>0) { key=\$1; val=\$2; gsub(/^[ ]+|[ ]+\$/, "", key); gsub(/^[ ]+|[ ]+\$/, "", val); printf " %s: %s\\n", key, val } }')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this really really long expression doing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This extracts the compatible version of the non-gpu tool so that you can directly see that in the snapshot. There is no reason to have this as a topic because this is specific for parabricks modules.

Comment on lines +73 to +76
# We handle this different to the other modules because minimap does not begin with an Uppercase letter

# Generate compatible_versions.yml
cat <<EOF > compatible_versions.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you swap to a topic channel please, which may make this unnecessary.

${args}

# Capture the full version output once and store it in a variable
pbrun_version_output=\$(pbrun minimap2 --version 2>&1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Does the tool take a long time to give the version information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants